package com.pengji.rcp.plugin.table;

import java.util.List;

import org.eclipse.jface.viewers.IStructuredContentProvider;
import org.eclipse.jface.viewers.Viewer;

public class TableContentProvider implements IStructuredContentProvider {

	@Override
	public void dispose() {
		
	}

	@Override
	public void inputChanged(Viewer arg0, Object arg1, Object arg2) {
		
	}

	@Override
	public Object[] getElements(Object arg0) {
		if(arg0 instanceof List){
			List list=(List)arg0;
			return list.toArray();
		}
		return null;
	}

}
